package bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("order")
public class Order {
    @Value("210452261382")
    private String no;
    @Value("2021-09-01")
    private String date;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Order{" +
                "no='" + no + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
